package BOOK;

public class BookList {

    private Book[] books=new Book[10];
    private  int UsedSize;

    public BookList() {//初始化，一开始三本
        this.books[0]=new Book("罗贯中",19,"小说","三国演义");
        this.books[1]=new Book("吴承恩",17,"小说","西游记");
        this.books[2]=new Book("曹雪芹",22,"小说","红楼梦");
        this.UsedSize=3;
    }

    public Book getBook(int pos){
        return books[pos];
    }

    public void setBooks(int pos ,Book book) {
        books[pos]=book;
    }

    public int getUsedSize() {
        return UsedSize;
    }

    public void setUsedSize(int usedSize) {
        UsedSize = usedSize;
    }
}
